//
//  Corpse.m
//  OC02_作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Corpse.h"

@implementation Corpse

- (void)settotalVolume:(NSInteger)totalVolume {
    _totalVolume = totalVolume;
}
- (NSInteger)totalVolume {
    return  _totalVolume;
}

- (void)setOnceBloodLoss:(NSInteger)onceBloodLoss {
    _onceBloodLoss = onceBloodLoss;
}
- (NSInteger)onceBloodLoss {
    return _onceBloodLoss;
}

- (instancetype)initWithTotalVolume:(NSInteger)totalVolume
                      onceBloodLoss:(NSInteger)onceBloodLoss {
    self = [super init];
    if (self) {
        _totalVolume = totalVolume;
        _onceBloodLoss = onceBloodLoss;
    }
    return self;
}


+ (instancetype)corpseWithTotalVolume:(NSInteger)totalVolume
                        onceBloodLoss:(NSInteger)onceBloodLoss {
    Corpse *corpse = [[Corpse alloc] initWithTotalVolume:totalVolume onceBloodLoss:onceBloodLoss];
    return corpse;
}
@end
